extends Attribute


class_name RateAttribute
"""
概率值
"""


func pick() -> int:
    if value >= 100:
        return 1
    return 1 if value >= randi_range(1, 100) else 0
